package com.bw.lk.role.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.bw.lk.role.vo.Role;
import com.bw.lk.role.vo.Role_power;

public interface RoleDao {
    int deleteByPrimaryKey(Integer rid);

    int insert(Role record);

    int insertSelective(Role record);

    Role selectByPrimaryKey(Integer rid);

    int updateByPrimaryKeySelective(Role record);

    int updateByPrimaryKey(Role record);

	List<Role> getRoles();

	Role getRoleByRid(Integer rid);

	List<Role_power> getRolePowerListByRid(Integer rid);

	void deleteRolePower(Integer rid);

	void updateRolePower(@Param("rid")Integer rid, @Param("string")String string);

	void addAdminRole(Role role);

	void removeRoleByRid(Integer rid);
}